package com.course.controller;

import com.baselib.android.utils.MD5Util;
import com.course.utils.web.HttpAction;
import com.course.utils.web.HttpReq;
import com.course.utils.web.HttpRespCallBack;
import com.course.utils.web.MapBuilder;

public class VersionController {

    static VersionController instance;

    public static VersionController getInstance() {
        if (instance == null) {
            instance = new VersionController();
        }
        return instance;
    }

    public void get(Integer versionCode ,HttpRespCallBack httpRespCallBack){
        HttpReq.getInstance().post(HttpAction.versionGet.getValue(),
                new MapBuilder<String, Object>()
                        .add("versionCode", versionCode)
                        .getMap(),
                httpRespCallBack);
    }



}
